import React, { Component } from 'react'

import Mycounter from './cpts/Mycounter'
import store from './store'

const state = store.getState()

export const styles = {
  box: {
    border: '1px solid #ddd',
    borderRadius: 15,
    padding: 15,
    margin: 15,
  }
}

export default class index extends Component {
  render() {
    return (
      <div style={styles.box}>
        <h3>Redux - Redux</h3>
        <Mycounter value={state} />
      </div>
    )
  }
}
